package com.zeldu.exam.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.sql.Timestamp;
@Data
@NoArgsConstructor
@AllArgsConstructor
@TableName("ExamInfoAndStatus")
public class ExamInfoAndStatus {
    @TableId(value = "id",type = IdType.AUTO)
    private Long id;

    @TableField(value = "paper_name")
    private String papername;

    @TableField(value = "course_id")
    private Long courseid;

    @TableField(value = "teacher_id")
    private Long teacherid;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone="GMT+8")
    @TableField(value = "create_time")
    private Timestamp createtime;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone="GMT+8")
    @TableField(value = "start_time")
    private Timestamp starttime;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone="GMT+8")
    @TableField(value = "end_time")
    private Timestamp endtime;

    @TableField(value = "exist_time")
    private int existtime;

    @TableField(value = "paper_id")
    private Long paperid;

    @TableField(value = "subject")
    private String subject;

    @TableField(value = "status")
    private int status;

    @TableField(value = "score")
    private int score;
}
